package com.fph.design;

import java.util.concurrent.TimeUnit;

/**
 * 定义适配器接口
 * @InterfaceName CacheService
 * @Description TODO
 * @Author fph
 * @Date 2024-07-10 9:06
 **/
public interface CacheService {

    void del(String key);

    String get(final String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);
}
